package com.itheima.day10;

/*

    定义一个水果类Fruit，包含属性：
        类型type（String 类型）、单价price（double 类型）、折扣discount（boolean 类型）
        提供空参、带参构造
        提供getXxx()、setXxx()方法

 */
public class Fruit02 {


    private  String type;
    private  double price;
    private boolean discount;

    public Fruit02() {

    }

    public Fruit02(String type, double price, boolean discount) {
        this.type = type;
        this.price = price;
        this.discount = discount;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public boolean isDiscount() {
        return discount;
    }

    public void setDiscount(boolean discount) {
        this.discount = discount;
    }

//    public static void show(){
//
//    }
}
